package com.example.xpvideo.entity;

import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 发现管理(Discover)实体类
 *
 * @author 杨丽辉
 * @since 2021-10-18 21:01:21
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Discover implements Serializable {
    private static final long serialVersionUID = 613367515295064921L;
        /**
    *主键
    * ${column.comment}
    * isnull 1
    */
        private Integer id;

    /**
    * 发布者id
    * isnull 0
    */            private Integer userId;
    /**
    * 发布者类型：0用户；1供应商城商户；2本地生活商户
    * isnull 0
    */            private Integer userType;
    /**
    * 发布人手机号
    * isnull 0
    */            private String phone;
    /**
    * 文章标题
    * isnull 0
    */            private String title;
    /**
    * 文章内容(富文本)
    * isnull 0
    */            private String content;
    /**
    * 商品名称
    * isnull 0
    */            private String commodityName;
    /**
    * 点赞数
    * isnull 0
    */            private Integer likeCount;
    /**
    * 发布时间
    * isnull 0
    */            private Integer createTime;
    /**
    * 更新时间
    * isnull 0
    */            private Integer updateTime;
    /**
    * 是否删除：0是；1否
    * isnull 0
    */            private Integer isDel;
        
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
        
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
        
    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }
        
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
        
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
        
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
        
    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }
        
    public Integer getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }
        
    public Integer getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }
        
    public Integer getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Integer updateTime) {
        this.updateTime = updateTime;
    }
        
    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

        @Override
    public String toString() {
        return "{" +
                    " \"id\":" + id +
                                  " ,\"userId\":" + userId +
                            " ,\"userType\":" + userType +
                            " ,\"phone\":" + phone +
                            " ,\"title\":" + title +
                            " ,\"content\":" + content +
                            " ,\"commodityName\":" + commodityName +
                            " ,\"likeCount\":" + likeCount +
                            " ,\"createTime\":" + createTime +
                            " ,\"updateTime\":" + updateTime +
                            " ,\"isDel\":" + isDel +
                  '}';
    }


}
